package com.xl.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: Johnney.Bu
 * @Create: 2023-12-26 11:13
 **/

@Getter
@AllArgsConstructor
public enum HttpStatusEnum {

    SUCCESS(200, "success"),
    BAD_REQUEST(400, "参数不匹配"),
    UNAUTHORIZED(401, "未登录，请登录后重试"),
    INVALID_ACCOUNT(402, "用户名或密码错误"),
    AUTHORIZE_EXPIRED(403, "授权过期，请重新登录"),
    EXCEPTION(500, "服务异常，请稍后重试"),
    TIMEOUT(504, "请求处理超时");

    private int code;
    private String msg;
}
